"""
users = ['ales', 'eric']
val = "_".join(users)

file_object = open('log.txt', mode='w+', encoding='utf-8')

file_object.write(val)
file_object.seek(0)
content = file_object.read()
print(content)
file_object.close()
"""

"""user = [
    {'name': 'zky', 'pwd': '123'},
    {'name': 'youdade', 'pwd': '1234'}
]
file_object = open('a1.txt', mode='w', encoding='utf-8')
for i in user:
    val = '%s,%s\n' % (i['name'], i['pwd'])
    file_object.write(val)
file_object.close()
"""
"""
file_object = open('a1.txt', mode='r', encoding='utf-8')
cent = file_object.read()
print(cent)
cent=cent.strip()
data_list = cent.split('\n')
print(data_list)
file_object.close()
"""
"""
result = []
file_object = open('a1.txt', mode='r', encoding='utf-8')
for line in file_object:
    line = line.strip()
    result.append(line)
file_object.close()
print(result)
"""
data = 'wocoa'
cent = data.encode('utf-8')
print(cent)